﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Data.Common;

namespace Vallejos.Datos.Servicios
{
    public interface IDataBase
    {
        DbCommand GetStoredProcCommand(string storedProcedureName);
        void AddInParameter(DbCommand command, string name, DbType dbType, object value);
        IDataReader ExecuteReader(DbCommand command);
        void AddOutParameter(DbCommand command, string name, DbType dbType, int size);
        object GetParameterValue(DbCommand command, string name);
        void ExecuteNonQuery(DbCommand command);
        void SetParameterValue(DbCommand command, string parameterNname, object value);
    }
}
